/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VolPro.Entity.SystemModels;

namespace VolPro.Entity.DomainModels
{
    [Entity(TableCnName = "批次历史表",TableName = "oldworkbatchorder",DBServer = "SmesDbContext")]
    public partial class oldworkbatchorder:SmesEntity
    {
        /// <summary>
       ///主键，自增ID
       /// </summary>
       [Key]
       [Display(Name ="主键，自增ID")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int BatchID { get; set; }

       /// <summary>
       ///批次编码
       /// </summary>
       [Display(Name ="批次编码")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       public string BatchCode { get; set; }

       /// <summary>
       ///订单编码
       /// </summary>
       [Display(Name ="订单编码")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       public string OrderNo { get; set; }

       /// <summary>
       ///产品编码
       /// </summary>
       [Display(Name ="产品编码")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string ProductCode { get; set; }

       /// <summary>
       ///投产数量
       /// </summary>
       [Display(Name ="投产数量")]
       [DisplayFormat(DataFormatString="18,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public decimal Quantity { get; set; }

       /// <summary>
       ///完工数量
       /// </summary>
       [Display(Name ="完工数量")]
       [DisplayFormat(DataFormatString="18,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public decimal FinishQuantity { get; set; }

       /// <summary>
       ///操作人员
       /// </summary>
       [Display(Name ="操作人员")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string Operators { get; set; }

       /// <summary>
       ///订单状态 -1作废0创建1执行2暂停3完成
       /// </summary>
       [Display(Name ="订单状态 -1作废0创建1执行2暂停3完成")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int Status { get; set; }

       /// <summary>
       ///开始时间，默认当前时间
       /// </summary>
       [Display(Name ="开始时间，默认当前时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public DateTime StartDate { get; set; }

       /// <summary>
       ///结束时间
       /// </summary>
       [Display(Name ="结束时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? EndDate { get; set; }

       /// <summary>
       ///备注
       /// </summary>
       [Display(Name ="备注")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string Memo { get; set; }

       
    }
}